package cn.diancan.model.types;

public enum ConstellationType {
    
    M_1(1 ,"水瓶座","1.20-2.18"  ),
    M_2(2 ,"双鱼座","2.19-3.20"  ),
    M_3(3 ,"白羊座","3.21-4.19"  ),
    M_4(4 ,"金牛座","4.20-5.20"  ),
    M_5(5 ,"双子座","5.21-6.21"  ),
    M_6(6 ,"巨蟹座","6.22-7.22"  ),
    M_7(7 ,"狮子座","7.23-8.22"  ),
    M_8(8 ,"处女座","8.23-9.22"  ),
    M_9(9 ,"天秤座","9.23-10.23" ),
    M_10(10,"天蝎座","10.24-11.22"),
    M_11(11,"射手座","11.23-12.21"),
    M_12(12,"摩羯座","12.22-1.19" ); 

    private Integer id; 
    private String conName;
    private String conDate;
    
    private ConstellationType(Integer id, String conName, String conDate) {
	this.id = id;
	this.conName = conName;
	this.conDate = conDate;
    }
    
    public static boolean checkExists(Integer id){
	if(null==id){
	    return false;
	}
	ConstellationType enums[] =ConstellationType.values();
	for (int i = 0; i < enums.length; i++) {
	    ConstellationType singleEnum=  enums[i];
	    if(singleEnum.getId().equals(id)){
		return true;
	    }
	}
	return false;
    }
    
    

    public Integer getId() {
        return id;
    }

    public String getConName() {
        return conName;
    }

    public String getConDate() {
        return conDate;
    }  
    
    
    
}
